# -*- coding:utf-8 -*-
# __author__ : "张百科"
# Date: 2021/1/26 15:40
# File: constructionlogs.py
# IDE: PyCharm


from django_filters import rest_framework
from models.constructionlogs  import ConstructionLogs
from utils.choices import construction_process
import django_filters


class ConstructionLogsFilter(rest_framework.FilterSet):
    construction_id = django_filters.NumberFilter(field_name='construction_id')
    process=django_filters.ChoiceFilter(field_name='process',choices=construction_process)



    class Meta:
        model = ConstructionLogs
        fields = ['construction_id', 'process']